using System;
using System.Collections.Generic;
using Commons.Models.Scores;
using Commons.Preferences;


namespace Commons.Daos.Scores
{
	public class CacheHighScoreDao : DictionaryCacheDao<int, HighScore>, IHighScoreDao
	{
		#region IHighScoreDao implementation

		int IHighScoreDao.Update (HighScore highScore)
		{
			Update(highScore);
			return 0;
		}

		#endregion

		#region implemented abstract members of DictionaryCacheDao

		protected override int GetKey (HighScore value)
		{
			return value.Definition.Code;
		}

		#endregion

		public CacheHighScoreDao ()
		{
		}
	}
}

